<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="myElement">这是一个元素</div>
    <script>
      // 获取一个 id为 "myElement" 的元素，将其字体颜色修改为fen红色
      var a = document.getElementById("myElement");
      console.log(a.style.color='pink');
      console.log(a);
    </script>
  </body>
</html>
